import { ref } from "vue";
import { sendSmsInviteCode } from "../../../../../../../../api/basic";

// 发送邀请码服务
const useSendInviteCodeService = () => {
    // 加载
    const loading = ref(false)

    // 发送邀请码方法
    const send = async (phoneNumberList: Array<string>) => {
        loading.value = true
        const res = await sendSmsInviteCode(phoneNumberList)
        loading.value = false
        return res.data
    }

    return {
        loading,
        send
    }
}

export default useSendInviteCodeService
